package com.zhentao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhentao.pojo.WorkflowNode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 流程节点Mapper接口
 */
@Mapper
public interface WorkflowNodeMapper extends BaseMapper<WorkflowNode> {
    
    /**
     * 根据流程ID查询节点列表
     */
    @Select("SELECT * FROM workflow_node WHERE process_id = #{processId} ORDER BY sort")
    List<WorkflowNode> selectByProcessId(Long processId);
} 